﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.burry.services.SizeService" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bary</title>
<!--Script and CSS includes for YUI dependencies on this page-->
<link rel="stylesheet" type="text/css" href="Resource/yui/build/tabview/assets/skins/sam/tabview.css" />
<link rel="stylesheet" type="text/css" href="Resource/yui/build/button/assets/skins/sam/button.css" />
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/main.css">
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/css.css">
<link rel="stylesheet" type="text/css" id="css" href="Resource/css/good.css">
<script type="text/javascript" src="Resource/yui/build/yuiloader/yuiloader-beta-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/event/event-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/dom/dom-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/element/element-beta-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/tabview/tabview-min.js"></script>
<script type="text/javascript" src="Resource/yui/build/button/button-min.js"></script>
<script language="JavaScript" type="text/JavaScript" src="Resource/js/cs.js"></script>
<script language="JavaScript" type="text/JavaScript" src="Resource/js/core.js"></script>
<script language="JavaScript" type="text/JavaScript">
var goodId = null;
<!--
var aryPType = new Array();
<s:property value="selectStr" escape="false"/>
-->
</script>
</head>
<body id="yahoo-com" class=" yui-skin-sam">
<form name="goodForm" method="post" action="addAGood.do">
	<input type="hidden" name="inputGoodId" id="inputGoodId" />
	<input type="hidden" name="inputFea" id="inputFea" />
  <div id="framed">
    <h2>库存管理</h2>
  </div>
  <div>
          <div class="line_pubForm">
            <table width="100%" style="tabSty">
            	<tr>
                <td width=120 align=right>产品简称：</td>
                <td align=left><input type="text" id="sname" name="sname" onblur="buildCode()" class="iptSty" >
                  &nbsp;&nbsp; 
              </tr>
              <tr>
                <td width=120 align=right>产品名称：</td>
                <td align=left><input type="text" name="cname" class="iptSty" >
                  &nbsp;&nbsp; 
              </tr>
            </table>
            <div class="pubtips" style="display:block;">你录入的产品编号为：<span id="goodIda"></span> </div>
          </div>
          <div class="line_pubForm">
            <table width="100%" style="tabSty">
              <tr>
                <td width=120 align=right>产品特性：</td>
                <td align=left><select name="tags" id="tags">
                    <option selected>材质</option>
                    <option>面料</option>
                    <option>细节</option>
                  </select>
                </td>
              </tr>
              <tr>
                <td width=120 align=right>特性内容：</td>
                <td align=left><textarea id="feaContent" class="txtarea" rows=4 cols=40 name="" value=""></textarea> &nbsp; <input type="button" value="增加" onclick="addFeature()" /> &nbsp; <input type="button" value="重置" onclick="resetFea()" /></td>
              </tr>
            </table>
            <div class="pubtips" style="display:block;">
              <div>你录入的产品特性为：</div>
              
              <div id="feaDiv">
              	
              	
              </div>
              
            </div>
          </div>
          <div class="line_pubForm">
            <table cellpadding=0 cellspacing=0 border=0 width="100%" style="tabSty">
              <tr>
                <td width=120 align=right valign=top>产品简介：</td>
                <td align=left><textarea class="txtarea" rows=4 cols=40 name="goodIntro" value=""></textarea>
                  &nbsp;&nbsp;</td>
              </tr>
            </table>
            
          </div>
          <div class="line_pubForm">
            <table cellpadding=0 cellspacing=0 border=0 width="100%" style="tabSty">
              <tr>
                <td width=120 align=right valign=top>产品详细介绍：</td>
                <td align=left><textarea class="txtarea" rows=4 cols=40 name="goodDes" value=""></textarea>
                  &nbsp;&nbsp;非填项&nbsp;&nbsp;
                  
              </tr>
            </table>
           
          </div>
          <div class="line_pubForm">
            <table cellpadding=0 cellspacing=0 border=0 width="100%" style="tabSty">
              <tr>
                <td width=120 align=right valign=top>设计与工艺：</td>
                <td align=left><textarea class="txtarea" rows=4 cols=40 name="goodDesign" value=""></textarea>
                  &nbsp;&nbsp;非填项&nbsp;&nbsp;
                 
              </tr>
            </table>
            
          </div>
          <div class="pubForm">
            <table cellpadding=0 cellspacing=0 border=0 width="100%" style="tabSty">
              <tr>
                <td width=120 align=right>产品尺码表：</td>
                <td align=left><select name="goodSize">
                	<%
                		SizeService ss = new SizeService();
                		List ssList = ss.getAllSizeInfo();
                		for(int i=0;i<ssList.size();i++){
                			Map t = (Map)ssList.get(i);
                			out.println("<option value='" +t.get("id")+ "'>" +t.get("cname")+ "</option>");
                		}
                	%>
                    
                  </select>
                  &nbsp;
                  
                </td>
              </tr>
            </table>
            
          </div>
          <div class="line_pubForm">
          	
          	<table cellpadding=0 cellspacing=0 border=0 width="100%" style="tabSty">
              <tr>
                <td width=120 align=right valign=top>	<input type="button" onclick="checkAndSubmit()" value="保存" />&nbsp;</td>
                <td align=left><input type="button" onclick="returnBefore()" value="返回" />
              </tr>
            </table>
            
         
            
          </div>


  </div>
</form>
</body>
</html>
